<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="admin.php?mod=comment" <!--{if(!$_g_star):}-->class="sel"<!--{endif;}-->>所有评价（{$tongji['all']}）<i></i></a>
		<a href="admin.php?mod=comment&star=hao" <!--{if($_g_star=='hao'):}-->class="sel"<!--{endif;}-->>好 评（{$tongji['hao']}）<i></i></a>
		<a href="admin.php?mod=comment&star=zhong" <!--{if($_g_star=='zhong'):}-->class="sel"<!--{endif;}-->>中 评（{$tongji['zhong']}）<i></i></a>
		<a href="admin.php?mod=comment&star=cha" <!--{if($_g_star=='cha'):}-->class="sel"<!--{endif;}-->>差 评（{$tongji['cha']}）<i></i></a>
		<div class="clear"></div>
	</div>
	<div class="right_main">
		<div class="search">
			<form method="get">
				<input type="hidden" name="mod" value="{$_g_mod}" />
				<input type="hidden" name="star" value="{$_g_star}" />
				评价用户：<input type="text" name="user_name" value="{$_g_user_name}" class="inputtext input150 mar5" />
				评价内容：<input type="text" name="text" value="{$_g_text}" class="inputtext input150 mar5" />
				商品名称：<input type="text" name="name" value="{$_g_name}" class="inputtext input200 mar5" />
				<select name="reply" class="selectmini">
				<option value="">= 是否回复 =</option>
				<!--{foreach(array(1=>'已回复', 0=>'未回复') as $k=>$v):}-->
				<option value="{$k}" <!--{if(strlen($_g_reply) && $_g_reply==$k):}-->selected="selected"<!--{endif;}-->><!--{echo ++$index}-->) {$v}</option>
				<!--{endforeach;}-->
				</select>
				<input type="submit" value="搜索" class="input_btn" />
			</form>
		</div>
		<form method="post" id="form">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
		<tr>
			<th class="bgtt" width="20"><input type="checkbox" name="checkall" onclick="pe_checkall(this, 'comment_id')" /></th>
			<th class="bgtt" width="50">ID号</th>
			<th class="bgtt">评价内容</th>
			<th class="bgtt" width="150">评价用户</th>
			<th class="bgtt" colspan="2">商品信息</th>
			<th class="bgtt" width="100">操作</th>
		</tr>
		<!--{foreach($info_list as $v):}-->
		<!--{$comment_logo = $v['comment_logo'] ? explode(',', $v['comment_logo']) : array()}-->
		<tr>
			<td><input type="checkbox" name="comment_id[]" value="{$v['comment_id']}" /></td>
			<td>{$v['comment_id']}</td>
			<td class="left" valign="top">
				<p>{$v['comment_text']}</p>
				<!--{if(count($comment_logo)):}-->
				<p class="mat5">
				<!--{foreach($comment_logo as $index=>$logo):}-->
				<a href="admin.php?mod=comment&act=logo&id={$v['comment_id']}&num={$index}" target="_blank"><img src="{pe_thumb($logo, 100, 100)}" class="imgbg" style="width:50px;height:50px" /></a>
				<!--{endforeach;}-->
				</p>
				<!--{endif;}-->
				<div class="font12 cbbb mat10">{pe_date($v['comment_atime'], 'Y年m月d日 H:i')}<span class="mal20">{pe_comment($v['comment_star'], 14)}</span></div>
			</td>
			<td>
				<img src="{pe_thumb($v['user_logo'], '_120', '_120', 'avatar')}" style="width:40px;border-radius:50%">
				<p class="mat5"><a href="http://www.ip138.com/ips.asp?ip={$v['user_ip']}" target="_blank">{$v['user_name']}</a>
			</p>
			<td width="50"><a href="{pe_url('product-'.$v['product_id'])}" target="_blank"><img src="{pe_thumb($v['product_logo'], 100, 100)}" width="50" height="50" class="imgbg" /></a></td>
			<td class="left" width="300" style="padding-left:0"><a href="{pe_url('product-'.$v['product_id'])}" target="_blank" class="cblue">{$v['product_name']}</a></td>
			<td>
				<a href="admin.php?mod=comment&act=edit&id={$v['comment_id']}&{pe_jump()}" class="admin_edit mar3">修改</a>
				<a href="javascript:pe_confirm('删除', 'admin.php?mod=comment&act=del&id={$v['comment_id']}&token={$pe_token}')" class="admin_del">删除</a>
			</td>
		</tr>
		<!--{endforeach;}-->
		</table>
		</form>
	</div>
	<div class="right_bottom">
		<span class="fl">
			<input type="checkbox" name="checkall" onclick="pe_checkall(this, 'comment_id')" />
			<input type="button" onclick="pe_checksel('comment_id') && pe_confirm('批量删除', 'admin.php?mod=comment&act=del&token={$pe_token}', true)" value="批量删除" />
		</span>
		<span class="fr fenye">{$db->page->html}</span>
		<div class="clear"></div>
	</div>
</div>
<!--{include(pe_tpl('footer.html'));}-->